﻿using OnlineOrder.Entity;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace OnlineOrder.UI.用户窗体
{
    public partial class Pay : Form
    {
        public Pay()
        {
            InitializeComponent();
        }

        private void Pay_Load(object sender, EventArgs e)
        {
            try
            {
                string sql = string.Format($"select BusinessName,Id,status,ShoppingPrice from Order");

                DataTable dataTable= Utils.SqlHelper.ExecuteDataTable( sql );

                this.dataGridView1.DataSource = dataTable;

            }
            catch (Exception)
            {

                throw;
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //付款按钮

        }
    }
}
